home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / IsNan.c < prev    next >
MacBinary  |  1994-11-15  |  6.3 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Nov 15 18:30:32 1994, modified Tue Nov 15 18:30:32 1994, creator 'MMCC', type ASCII, 5659 bytes "IsNan.c" , at 0x169b 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 49 73 4e 61 6e 2e | 63 00 00 00 00 00 00 00 |..IsNan.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 16 1b 00 | 00 01 ac aa ee f5 18 aa |........|........|
|00000060| ee f5 18 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ac ad 00 00 |........|........|
|00000080| 2f 2a 20 49 73 4e 61 6e | 2e 63 0d 46 61 73 74 2c |/* IsNan|.c.Fast,|
|00000090| 20 70 6f 72 74 61 62 6c | 65 20 72 6f 75 74 69 6e | portabl|e routin|
|000000a0| 65 73 20 74 6f 20 63 68 | 65 63 6b 20 66 6f 72 20 |es to ch|eck for |
|000000b0| 49 45 45 45 20 74 72 61 | 6e 73 66 69 6e 69 74 65 |IEEE tra|nsfinite|
|000000c0| 20 6e 75 6d 62 65 72 73 | 3a 20 49 4e 46 20 61 6e | numbers|: INF an|
|000000d0| 64 20 4e 41 4e 2e 20 59 | 6f 75 0d 73 68 6f 75 6c |d NAN. Y|ou.shoul|
|000000e0| 64 20 61 6c 73 6f 20 6c | 6f 6f 6b 20 61 74 20 74 |d also l|ook at t|
|000000f0| 68 65 20 6d 61 63 72 6f | 20 49 73 46 69 6e 69 74 |he macro| IsFinit|
|00000100| 65 28 29 20 69 6e 20 56 | 69 64 65 6f 54 6f 6f 6c |e() in V|ideoTool|
|00000110| 62 6f 78 2e 68 2e 0d 0d | 41 70 70 6c 65 27 73 20 |box.h...|Apple's |
|00000120| 6e 65 77 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |new head|er file |
|00000130| 66 70 2e 68 20 64 65 66 | 69 6e 65 73 20 74 68 65 |fp.h def|ines the|
|00000140| 20 6d 61 63 72 6f 73 20 | 69 73 66 69 6e 69 74 65 | macros |isfinite|
|00000150| 28 78 29 20 61 6e 64 20 | 69 73 6e 61 6e 28 78 29 |(x) and |isnan(x)|
|00000160| 2c 20 61 6e 64 0d 74 68 | 65 20 66 75 6e 63 74 69 |, and.th|e functi|
|00000170| 6f 6e 20 6e 61 6e 28 22 | 32 35 35 22 29 2e 20 41 |on nan("|255"). A|
|00000180| 74 20 70 72 65 73 65 6e | 74 20 74 68 65 20 66 75 |t presen|t the fu|
|00000190| 6e 63 74 69 6f 6e 20 6e | 61 6e 28 29 20 69 73 20 |nction n|an() is |
|000001a0| 6f 6e 6c 79 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |only imp|lemented|
|000001b0| 20 66 6f 72 0d 74 68 65 | 20 50 6f 77 65 72 50 43 | for.the| PowerPC|
|000001c0| 2c 20 62 75 74 20 70 72 | 65 73 75 6d 61 62 6c 79 |, but pr|esumably|
|000001d0| 20 41 70 70 6c 65 20 77 | 69 6c 6c 20 73 6f 6f 6e | Apple w|ill soon|
|000001e0| 20 65 78 74 65 6e 64 20 | 73 75 70 70 6f 72 74 20 | extend |support |
|000001f0| 74 6f 20 69 6e 63 6c 75 | 64 65 20 74 68 65 20 36 |to inclu|de the 6|
|00000200| 38 30 78 30 0d 6d 61 63 | 68 69 6e 65 73 20 74 6f |80x0.mac|hines to|
|00000210| 6f 2e 20 53 75 72 70 72 | 69 73 69 6e 67 6c 79 2c |o. Surpr|isingly,|
|00000220| 20 66 70 2e 68 20 64 6f | 65 73 6e 27 74 20 69 6e | fp.h do|esn't in|
|00000230| 63 6c 75 64 65 20 61 6e | 79 20 65 71 75 69 76 61 |clude an|y equiva|
|00000240| 6c 65 6e 74 20 74 6f 20 | 49 73 49 6e 66 28 29 2e |lent to |IsInf().|
|00000250| 20 59 6f 75 0d 63 6f 75 | 6c 64 20 77 72 69 74 65 | You.cou|ld write|
|00000260| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6c 69 6b 65 20 | somethi|ng like |
|00000270| 66 70 63 6c 61 73 73 69 | 66 79 28 78 29 3d 3d 46 |fpclassi|fy(x)==F|
|00000280| 50 5f 49 4e 46 49 4e 49 | 54 45 2c 20 62 75 74 20 |P_INFINI|TE, but |
|00000290| 67 65 74 74 69 6e 67 20 | 74 68 65 20 73 69 67 6e |getting |the sign|
|000002a0| 0d 77 6f 75 6c 64 20 74 | 61 6b 65 20 61 6e 6f 74 |.would t|ake anot|
|000002b0| 68 65 72 20 73 74 65 70 | 2e 0d 0d 49 73 4e 61 6e |her step|...IsNan|
|000002c0| 20 61 6e 64 20 49 73 49 | 6e 66 20 74 61 6b 65 20 | and IsI|nf take |
|000002d0| 61 20 73 68 6f 72 74 63 | 75 74 20 69 6e 20 64 69 |a shortc|ut in di|
|000002e0| 73 74 69 6e 67 75 69 73 | 68 69 6e 67 20 4e 61 4e |stinguis|hing NaN|
|000002f0| 20 66 72 6f 6d 20 49 4e | 46 2e 20 54 68 65 20 64 | from IN|F. The d|
|00000300| 65 66 69 6e 69 74 69 6f | 6e 0d 6f 66 20 61 20 4e |efinitio|n.of a N|
|00000310| 61 4e 20 69 6e 20 74 68 | 65 20 41 70 70 6c 65 20 |aN in th|e Apple |
|00000320| 4e 75 6d 65 72 69 63 73 | 20 62 6f 6f 6b 20 6f 6e |Numerics| book on|
|00000330| 6c 79 20 73 61 79 73 20 | 74 68 61 74 20 61 20 4e |ly says |that a N|
|00000340| 61 4e 20 69 73 20 64 69 | 73 74 69 6e 67 75 69 73 |aN is di|stinguis|
|00000350| 68 65 64 20 66 72 6f 6d | 0d 61 6e 20 49 4e 46 20 |hed from|.an INF |
|00000360| 62 79 20 68 61 76 69 6e | 67 20 61 20 6e 6f 6e 7a |by havin|g a nonz|
|00000370| 65 72 6f 20 6d 61 6e 74 | 69 73 73 61 2e 20 55 6e |ero mant|issa. Un|
|00000380| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 20 61 20 73 |fortunat|ely, a s|
|00000390| 74 72 69 63 74 20 74 65 | 73 74 20 6f 66 20 74 68 |trict te|st of th|
|000003a0| 69 73 0d 72 65 71 75 69 | 72 65 73 20 74 65 73 74 |is.requi|res test|
|000003b0| 69 6e 67 20 74 68 65 20 | 77 68 6f 6c 65 20 6d 61 |ing the |whole ma|
|000003c0| 6e 74 69 73 73 61 2c 20 | 75 70 20 74 6f 20 38 20 |ntissa, |up to 8 |
|000003d0| 62 79 74 65 73 2c 20 61 | 6e 64 20 69 6e 20 66 61 |bytes, a|nd in fa|
|000003e0| 63 74 20 74 68 65 20 72 | 6f 75 74 69 6e 65 73 20 |ct the r|outines |
|000003f0| 69 6e 0d 50 6c 61 75 67 | 68 65 72 27 73 20 54 68 |in.Plaug|her's Th|
|00000400| 65 20 53 74 61 6e 64 61 | 72 64 20 43 20 4c 69 62 |e Standa|rd C Lib|
|00000410| 72 61 72 79 20 64 6f 20 | 65 78 61 63 74 6c 79 20 |rary do |exactly |
|00000420| 74 68 69 73 2e 20 28 54 | 68 65 20 49 45 45 45 20 |this. (T|he IEEE |
|00000430| 73 74 61 6e 64 61 72 64 | 20 6f 75 67 68 74 20 74 |standard| ought t|
|00000440| 6f 0d 68 61 76 65 20 64 | 69 73 61 6c 6c 6f 77 65 |o.have d|isallowe|
|00000450| 64 20 61 20 4e 61 4e 20 | 63 6f 64 65 20 6f 66 20 |d a NaN |code of |
|00000460| 7a 65 72 6f 2e 29 20 57 | 65 20 74 61 6b 65 20 61 |zero.) W|e take a|
|00000470| 20 68 79 62 72 69 64 20 | 61 70 70 72 6f 61 63 68 | hybrid |approach|
|00000480| 2c 20 6f 6e 20 36 38 30 | 78 30 0d 6d 61 63 68 69 |, on 680|x0.machi|
|00000490| 6e 65 73 20 28 69 2e 65 | 2e 20 31 30 20 26 20 31 |nes (i.e|. 10 & 1|
|000004a0| 32 20 62 79 74 65 20 64 | 6f 75 62 6c 65 73 29 20 |2 byte d|oubles) |
|000004b0| 6d 79 20 65 78 70 65 72 | 69 65 6e 63 65 20 69 73 |my exper|ience is|
|000004c0| 20 74 68 61 74 20 74 68 | 65 20 4e 61 4e 20 63 6f | that th|e NaN co|
|000004d0| 64 65 20 69 73 0d 61 6c | 77 61 79 73 20 6e 6f 6e |de is.al|ways non|
|000004e0| 7a 65 72 6f 2c 20 75 6e | 6c 65 73 73 20 73 6f 6d |zero, un|less som|
|000004f0| 65 6f 6e 65 20 67 6f 65 | 73 20 6f 75 74 20 6f 66 |eone goe|s out of|
|00000500| 20 74 68 65 69 72 20 77 | 61 79 20 74 6f 20 63 72 | their w|ay to cr|
|00000510| 65 61 74 65 20 61 20 7a | 65 72 6f 2d 63 6f 64 65 |eate a z|ero-code|
|00000520| 20 4e 61 4e 2c 0d 61 6e | 64 20 77 68 61 74 27 73 | NaN,.an|d what's|
|00000530| 20 6d 6f 72 65 2c 20 69 | 6e 20 61 6c 6c 20 4e 61 | more, i|n all Na|
|00000540| 4e 73 20 74 68 65 20 74 | 6f 70 20 62 69 74 20 6f |Ns the t|op bit o|
|00000550| 66 20 74 68 65 20 6d 61 | 6e 74 69 73 73 61 20 69 |f the ma|ntissa i|
|00000560| 73 20 73 65 74 2e 20 53 | 6f 20 69 74 20 69 73 0d |s set. S|o it is.|
|00000570| 73 75 66 66 69 63 69 65 | 6e 74 20 74 6f 20 74 65 |sufficie|nt to te|
|00000580| 73 74 20 74 68 65 20 74 | 6f 70 20 62 69 74 20 61 |st the t|op bit a|
|00000590| 6e 64 20 74 68 65 20 63 | 6f 64 65 20 62 79 74 65 |nd the c|ode byte|
|000005a0| 20 74 6f 20 64 69 73 74 | 69 6e 67 75 69 73 68 20 | to dist|inguish |
|000005b0| 62 65 74 77 65 65 6e 20 | 4e 61 4e 20 61 6e 64 20 |between |NaN and |
|000005c0| 49 4e 46 2e 0d 4f 6e 20 | 74 68 65 20 6f 74 68 65 |INF..On |the othe|
|000005d0| 72 20 68 61 6e 64 2c 20 | 74 68 65 20 50 6f 77 65 |r hand, |the Powe|
|000005e0| 72 50 43 20 4e 75 6d 65 | 72 69 63 73 20 6d 61 6e |rPC Nume|rics man|
|000005f0| 75 61 6c 20 73 61 79 73 | 20 74 68 61 74 20 74 68 |ual says| that th|
|00000600| 65 20 50 6f 77 65 72 50 | 43 20 63 68 69 70 20 61 |e PowerP|C chip a|
|00000610| 6c 77 61 79 73 0d 72 65 | 74 75 72 6e 73 20 61 20 |lways.re|turns a |
|00000620| 4e 61 4e 20 63 6f 64 65 | 20 6f 66 20 7a 65 72 6f |NaN code| of zero|
|00000630| 20 28 73 65 65 6d 73 20 | 61 20 66 6f 6f 6c 69 73 | (seems |a foolis|
|00000640| 68 20 63 68 6f 69 63 65 | 29 2c 20 73 6f 20 77 65 |h choice|), so we|
|00000650| 20 70 6c 61 79 20 73 61 | 66 65 20 61 6e 64 20 74 | play sa|fe and t|
|00000660| 65 73 74 0d 74 68 65 20 | 77 68 6f 6c 65 20 6d 61 |est.the |whole ma|
|00000670| 6e 74 69 73 73 61 20 77 | 68 65 6e 20 77 65 27 72 |ntissa w|hen we'r|
|00000680| 65 20 64 65 61 6c 69 6e | 67 20 77 69 74 68 20 38 |e dealin|g with 8|
|00000690| 20 62 79 74 65 20 64 6f | 75 62 6c 65 73 2e 0d 0d | byte do|ubles...|
|000006a0| 54 68 65 20 4e 75 6d 65 | 72 69 63 61 6c 20 45 78 |The Nume|rical Ex|
|000006b0| 74 65 6e 73 69 6f 6e 73 | 20 74 6f 20 43 20 67 72 |tensions| to C gr|
|000006c0| 6f 75 70 20 68 61 73 20 | 70 72 6f 70 6f 73 65 64 |oup has |proposed|
|000006d0| 20 69 6e 20 74 68 65 69 | 72 20 64 72 61 66 74 20 | in thei|r draft |
|000006e0| 73 74 61 6e 64 61 72 64 | 20 74 68 61 74 0d 72 6f |standard| that.ro|
|000006f0| 75 74 69 6e 65 73 20 76 | 65 72 79 20 73 69 6d 69 |utines v|ery simi|
|00000700| 6c 61 72 20 74 6f 20 74 | 68 65 73 65 20 62 65 63 |lar to t|hese bec|
|00000710| 6f 6d 65 20 61 20 70 61 | 72 74 20 6f 66 20 53 74 |ome a pa|rt of St|
|00000720| 61 6e 64 61 72 64 20 43 | 2e 20 41 6e 79 6f 6e 65 |andard C|. Anyone|
|00000730| 20 69 6e 74 65 72 65 73 | 74 65 64 20 69 6e 0d 77 | interes|ted in.w|
|00000740| 72 69 74 69 6e 67 20 73 | 75 63 68 20 72 6f 75 74 |riting s|uch rout|
|00000750| 69 6e 65 73 20 73 68 6f | 75 6c 64 20 72 65 61 64 |ines sho|uld read|
|00000760| 3a 20 50 6c 61 75 67 65 | 72 2c 20 50 2e 20 4a 2e |: Plauge|r, P. J.|
|00000770| 20 28 31 39 39 32 29 20 | 54 68 65 20 53 74 61 6e | (1992) |The Stan|
|00000780| 64 61 72 64 20 43 20 4c | 69 62 72 61 72 79 2e 0d |dard C L|ibrary..|
|00000790| 45 6e 67 6c 65 77 6f 6f | 64 20 43 6c 69 66 66 73 |Englewoo|d Cliffs|
|000007a0| 2c 20 4e 4a 3a 20 50 72 | 65 6e 74 69 63 65 20 48 |, NJ: Pr|entice H|
|000007b0| 61 6c 6c 2e 0d 0d 50 4f | 52 54 41 42 49 4c 49 54 |all...PO|RTABILIT|
|000007c0| 59 3a 20 53 74 61 6e 64 | 61 72 64 20 43 2e 20 53 |Y: Stand|ard C. S|
|000007d0| 68 6f 75 6c 64 20 77 6f | 72 6b 20 6f 6e 20 4d 6f |hould wo|rk on Mo|
|000007e0| 74 6f 72 6f 6c 61 20 61 | 6e 64 20 49 6e 74 65 6c |torola a|nd Intel|
|000007f0| 20 70 72 6f 63 65 73 73 | 6f 72 73 2c 20 62 75 74 | process|ors, but|
|00000800| 20 68 61 73 0d 6f 6e 6c | 79 20 62 65 65 6e 20 74 | has.onl|y been t|
|00000810| 65 73 74 65 64 20 6f 6e | 20 36 38 30 78 30 20 61 |ested on| 680x0 a|
|00000820| 6e 64 20 50 6f 77 65 72 | 50 43 20 70 72 6f 63 65 |nd Power|PC proce|
|00000830| 73 73 6f 72 73 20 69 6e | 20 4d 61 63 69 6e 74 6f |ssors in| Macinto|
|00000840| 73 68 20 63 6f 6d 70 75 | 74 65 72 73 2e 0d 0d 48 |sh compu|ters...H|
|00000850| 49 53 54 4f 52 59 3a 0d | 38 2f 32 34 2f 39 31 20 |ISTORY:.|8/24/91 |
|00000860| 64 67 70 09 6d 61 64 65 | 20 63 6f 6d 70 61 74 69 |dgp.made| compati|
|00000870| 62 6c 65 20 77 69 74 68 | 20 54 48 49 4e 4b 20 43 |ble with| THINK C|
|00000880| 20 35 2e 30 2e 0d 31 32 | 2f 32 33 2f 39 31 20 64 | 5.0..12|/23/91 d|
|00000890| 67 70 20 49 20 72 65 70 | 6c 61 63 65 64 20 74 68 |gp I rep|laced th|
|000008a0| 65 20 23 69 66 20 73 74 | 61 74 65 6d 65 6e 74 73 |e #if st|atements|
|000008b0| 20 62 79 20 6f 72 64 69 | 6e 61 72 79 20 69 66 20 | by ordi|nary if |
|000008c0| 73 74 61 74 65 6d 65 6e | 74 73 2c 20 77 68 69 63 |statemen|ts, whic|
|000008d0| 68 20 61 72 65 20 0d 09 | 6d 6f 72 65 20 72 65 61 |h are ..|more rea|
|000008e0| 64 61 62 6c 65 20 61 6e | 64 20 61 72 65 20 61 6c |dable an|d are al|
|000008f0| 6c 6f 77 65 64 20 74 6f | 20 75 73 65 20 74 68 65 |lowed to| use the|
|00000900| 20 73 69 7a 65 6f 66 28 | 29 20 6f 70 65 72 61 74 | sizeof(|) operat|
|00000910| 6f 72 2e 0d 09 4e 6f 74 | 65 20 74 68 61 74 20 6d |or...Not|e that m|
|00000920| 6f 73 74 20 6f 66 20 74 | 68 65 20 69 66 20 73 74 |ost of t|he if st|
|00000930| 61 74 65 6d 65 6e 74 73 | 20 77 69 6c 6c 20 62 65 |atements| will be|
|00000940| 20 65 76 61 6c 75 61 74 | 65 64 20 61 6e 64 20 72 | evaluat|ed and r|
|00000950| 65 6d 6f 76 65 64 20 62 | 79 20 74 68 65 0d 09 63 |emoved b|y the..c|
|00000960| 6f 6d 70 69 6c 65 72 2c | 20 77 69 74 68 20 6e 6f |ompiler,| with no|
|00000970| 20 72 75 6e 74 69 6d 65 | 20 70 65 6e 61 6c 74 79 | runtime| penalty|
|00000980| 2e 0d 31 32 2f 32 33 2f | 39 31 20 64 67 70 20 57 |..12/23/|91 dgp W|
|00000990| 72 6f 74 65 20 6d 79 20 | 6f 77 6e 20 63 6f 64 65 |rote my |own code|
|000009a0| 20 74 6f 20 72 65 70 6c | 61 63 65 20 74 68 65 20 | to repl|ace the |
|000009b0| 53 41 4e 45 20 63 6f 64 | 65 20 73 69 6e 63 65 20 |SANE cod|e since |
|000009c0| 69 74 27 73 20 74 6f 6f | 20 73 6c 6f 77 2e 0d 09 |it's too| slow...|
|000009d0| 54 68 69 73 20 6d 61 6b | 65 73 20 49 73 4e 61 6e |This mak|es IsNan|
|000009e0| 28 29 20 61 62 6f 75 74 | 20 35 20 74 69 6d 65 73 |() about| 5 times|
|000009f0| 20 66 61 73 74 65 72 2e | 0d 09 4d 79 20 63 6f 64 | faster.|..My cod|
|00000a00| 65 20 69 73 20 62 61 73 | 65 64 20 6f 6e 20 74 68 |e is bas|ed on th|
|00000a10| 65 20 41 70 70 6c 65 20 | 4e 75 6d 65 72 69 63 73 |e Apple |Numerics|
|00000a20| 20 4d 61 6e 75 61 6c 2c | 20 32 6e 64 20 65 64 69 | Manual,| 2nd edi|
|00000a30| 74 69 6f 6e 2e 20 49 74 | 20 73 61 79 73 20 74 68 |tion. It| says th|
|00000a40| 61 74 0d 09 61 20 6e 75 | 6d 62 65 72 20 69 73 20 |at..a nu|mber is |
|00000a50| 61 20 4e 41 4e 20 69 66 | 66 20 74 68 65 20 65 78 |a NAN if|f the ex|
|00000a60| 70 6f 6e 65 6e 74 20 69 | 73 20 61 6c 6c 20 6f 6e |ponent i|s all on|
|00000a70| 65 73 20 61 6e 64 20 74 | 68 65 20 66 72 61 63 74 |es and t|he fract|
|00000a80| 69 6f 6e 20 69 73 20 6e | 6f 6e 7a 65 72 6f 2e 0d |ion is n|onzero..|
|00000a90| 09 49 20 6d 61 6b 65 20 | 61 20 73 6c 69 67 68 74 |.I make |a slight|
|00000aa0| 20 73 68 6f 72 74 63 75 | 74 20 69 6e 20 63 68 65 | shortcu|t in che|
|00000ab0| 63 6b 69 6e 67 20 6f 6e | 6c 79 20 74 68 65 20 74 |cking on|ly the t|
|00000ac0| 6f 70 20 31 35 20 62 69 | 74 73 20 6f 66 20 74 68 |op 15 bi|ts of th|
|00000ad0| 65 20 66 72 61 63 74 69 | 6f 6e 2c 0d 09 73 69 6e |e fracti|on,..sin|
|00000ae0| 63 65 20 74 68 61 74 20 | 69 6e 63 6c 75 64 65 73 |ce that |includes|
|00000af0| 20 74 68 65 20 62 79 74 | 65 20 74 68 61 74 20 73 | the byt|e that s|
|00000b00| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 4e 41 4e |pecifies| the NAN|
|00000b10| 20 74 79 70 65 2c 20 6f | 6e 20 74 68 65 20 70 72 | type, o|n the pr|
|00000b20| 65 6d 69 73 65 0d 09 74 | 68 61 74 20 61 6c 6c 20 |emise..t|hat all |
|00000b30| 4e 41 4e 73 20 74 68 61 | 74 20 49 20 77 69 6c 6c |NANs tha|t I will|
|00000b40| 20 61 63 74 75 61 6c 6c | 79 20 73 65 65 20 69 6e | actuall|y see in|
|00000b50| 20 70 72 61 63 74 69 63 | 65 20 77 69 6c 6c 20 68 | practic|e will h|
|00000b60| 61 76 65 20 6e 6f 6e 7a | 65 72 6f 20 74 79 70 65 |ave nonz|ero type|
|00000b70| 2e 0d 09 4d 79 20 63 6f | 64 65 20 68 61 6e 64 6c |...My co|de handl|
|00000b80| 65 73 20 74 68 65 20 6f | 72 64 69 6e 61 72 79 20 |es the o|rdinary |
|00000b90| 63 61 73 65 73 20 6f 66 | 20 31 30 20 6f 72 20 31 |cases of| 10 or 1|
|00000ba0| 32 20 62 79 74 65 20 64 | 6f 75 62 6c 65 73 2e 20 |2 byte d|oubles. |
|00000bb0| 54 68 65 20 77 65 69 72 | 64 0d 09 63 61 73 65 20 |The weir|d..case |
|00000bc0| 6f 66 20 73 68 6f 72 74 | 65 72 20 64 6f 75 62 6c |of short|er doubl|
|00000bd0| 65 73 20 28 77 68 69 63 | 68 20 61 72 65 20 75 6e |es (whic|h are un|
|00000be0| 6c 69 6b 65 6c 79 20 73 | 69 6e 63 65 20 74 68 65 |likely s|ince the|
|00000bf0| 79 20 72 75 6e 20 76 65 | 72 79 20 73 6c 6f 77 6c |y run ve|ry slowl|
|00000c00| 79 29 0d 09 61 72 65 20 | 64 65 74 65 63 74 65 64 |y)..are |detected|
|00000c10| 20 62 79 20 74 68 65 20 | 61 73 73 65 72 74 28 29 | by the |assert()|
|00000c20| 20 74 65 73 74 20 61 74 | 20 74 68 65 20 62 65 67 | test at| the beg|
|00000c30| 69 6e 6e 69 6e 67 2e 0d | 31 32 2f 32 33 2f 39 31 |inning..|12/23/91|
|00000c40| 20 64 67 70 20 41 73 6b | 65 64 20 74 68 65 20 54 | dgp Ask|ed the T|
|00000c50| 48 49 4e 4b 20 43 20 63 | 6f 6d 70 69 6c 65 72 20 |HINK C c|ompiler |
|00000c60| 6e 6f 74 20 74 6f 20 74 | 69 6d 65 20 74 68 69 73 |not to t|ime this|
|00000c70| 20 72 6f 75 74 69 6e 65 | 2e 0d 31 32 2f 32 39 2f | routine|..12/29/|
|00000c80| 39 31 20 64 67 70 20 45 | 6c 69 6d 69 6e 61 74 65 |91 dgp E|liminate|
|00000c90| 64 20 74 68 65 20 6e 65 | 65 64 20 66 6f 72 20 53 |d the ne|ed for S|
|00000ca0| 41 4e 45 2e 68 20 61 6e | 64 20 54 79 70 65 73 2e |ANE.h an|d Types.|
|00000cb0| 68 2e 20 54 68 65 20 53 | 41 4e 45 20 73 74 75 66 |h. The S|ANE stuf|
|00000cc0| 66 0d 09 6e 6f 77 20 61 | 70 70 65 61 72 73 20 69 |f..now a|ppears i|
|00000cd0| 6e 20 69 74 73 20 6f 77 | 6e 20 66 69 6c 65 3a 20 |n its ow|n file: |
|00000ce0| 53 41 4e 45 2e 63 2e 20 | 0d 09 57 72 6f 74 65 20 |SANE.c. |..Wrote |
|00000cf0| 49 73 49 6e 66 28 29 2e | 0d 09 57 72 6f 74 65 20 |IsInf().|..Wrote |
|00000d00| 61 20 6e 65 77 20 6d 61 | 63 72 6f 20 64 65 66 69 |a new ma|cro defi|
|00000d10| 6e 69 74 69 6f 6e 2c 20 | 69 6e 20 56 69 64 65 6f |nition, |in Video|
|00000d20| 54 6f 6f 6c 62 6f 78 2e | 68 2c 20 66 6f 72 20 49 |Toolbox.|h, for I|
|00000d30| 73 46 69 6e 69 74 65 28 | 29 2c 20 0d 09 74 68 61 |sFinite(|), ..tha|
|00000d40| 74 20 61 6c 6c 6f 77 73 | 20 66 61 73 74 20 69 6e |t allows| fast in|
|00000d50| 6c 69 6e 65 20 74 65 73 | 74 69 6e 67 20 66 6f 72 |line tes|ting for|
|00000d60| 20 77 68 65 74 68 65 72 | 20 61 20 6e 75 6d 62 65 | whether| a numbe|
|00000d70| 72 20 69 73 20 6f 6b 2c | 20 69 2e 65 2e 20 6e 65 |r is ok,| i.e. ne|
|00000d80| 69 74 68 65 72 20 0d 09 | 4e 41 4e 20 6e 6f 72 20 |ither ..|NAN nor |
|00000d90| 49 4e 46 2e 20 0d 31 2f | 31 34 2f 39 32 09 64 67 |INF. .1/|14/92.dg|
|00000da0| 70 09 43 68 61 6e 67 65 | 64 20 49 73 4e 61 6e 28 |p.Change|d IsNan(|
|00000db0| 29 20 74 6f 20 6e 6f 77 | 20 72 65 74 75 72 6e 20 |) to now| return |
|00000dc0| 74 68 65 20 74 79 70 65 | 20 28 31 2e 2e 32 35 35 |the type| (1..255|
|00000dd0| 29 20 6f 66 20 74 68 65 | 20 4e 41 4e 2c 20 6f 72 |) of the| NAN, or|
|00000de0| 20 7a 65 72 6f 0d 09 69 | 66 20 6e 6f 74 20 61 20 | zero..i|f not a |
|00000df0| 4e 41 4e 2e 20 54 68 69 | 73 20 77 69 6c 6c 20 62 |NAN. Thi|s will b|
|00000e00| 72 65 61 6b 20 70 72 6f | 67 72 61 6d 73 20 74 68 |reak pro|grams th|
|00000e10| 61 74 20 61 73 73 75 6d | 65 20 74 68 65 20 74 72 |at assum|e the tr|
|00000e20| 75 65 20 76 61 6c 75 65 | 20 69 73 20 61 6c 77 61 |ue value| is alwa|
|00000e30| 79 73 20 31 2c 0d 09 65 | 2e 67 2e 20 6e 61 6e 73 |ys 1,..e|.g. nans|
|00000e40| 2b 3d 49 73 4e 61 6e 28 | 61 29 3b 0d 09 46 69 78 |+=IsNan(|a);..Fix|
|00000e50| 65 64 20 49 73 49 6e 66 | 28 29 20 74 6f 20 63 6f |ed IsInf|() to co|
|00000e60| 72 72 65 63 74 6c 79 20 | 72 65 74 75 72 6e 20 73 |rrectly |return s|
|00000e70| 69 67 6e 20 6f 66 20 b1 | 49 4e 46 2e 0d 31 2f 31 |ign of .|INF..1/1|
|00000e80| 38 2f 39 32 09 64 67 70 | 09 52 65 77 72 6f 74 65 |8/92.dgp|.Rewrote|
|00000e90| 20 72 6f 75 74 69 6e 65 | 73 2c 20 6d 61 6b 69 6e | routine|s, makin|
|00000ea0| 67 20 74 68 65 6d 20 73 | 69 6d 70 6c 65 72 2c 20 |g them s|impler, |
|00000eb0| 61 6e 64 20 61 6c 77 61 | 79 73 20 63 68 65 63 6b |and alwa|ys check|
|00000ec0| 69 6e 67 20 74 68 65 20 | 6d 6f 73 74 20 0d 09 73 |ing the |most ..s|
|00000ed0| 69 67 6e 69 66 69 63 61 | 6e 74 20 62 69 74 20 6f |ignifica|nt bit o|
|00000ee0| 66 20 74 68 65 20 6d 61 | 6e 74 69 73 73 61 20 69 |f the ma|ntissa i|
|00000ef0| 6e 20 74 65 73 74 69 6e | 67 20 66 6f 72 20 4e 41 |n testin|g for NA|
|00000f00| 4e 2e 0d 36 2f 35 2f 39 | 33 09 64 67 70 09 55 70 |N..6/5/9|3.dgp.Up|
|00000f10| 64 61 74 65 64 20 64 6f | 63 75 6d 65 6e 74 61 74 |dated do|cumentat|
|00000f20| 69 6f 6e 2e 0d 37 2f 33 | 31 2f 39 34 20 64 67 70 |ion..7/3|1/94 dgp|
|00000f30| 20 61 64 64 65 64 20 73 | 75 70 70 6f 72 74 20 66 | added s|upport f|
|00000f40| 6f 72 20 38 2d 62 79 74 | 65 20 64 6f 75 62 6c 65 |or 8-byt|e double|
|00000f50| 73 2c 20 74 6f 20 73 75 | 70 70 6f 72 74 20 74 68 |s, to su|pport th|
|00000f60| 65 20 50 6f 77 65 72 50 | 43 2e 0d 2a 2f 0d 0d 23 |e PowerP|C..*/..#|
|00000f70| 69 6e 63 6c 75 64 65 20 | 22 56 69 64 65 6f 54 6f |include |"VideoTo|
|00000f80| 6f 6c 62 6f 78 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |olbox.h"|.#includ|
|00000f90| 65 20 3c 61 73 73 65 72 | 74 2e 68 3e 0d 23 69 66 |e <asser|t.h>.#if|
|00000fa0| 20 28 54 48 49 4e 4b 5f | 43 20 7c 7c 20 54 48 49 | (THINK_|C || THI|
|00000fb0| 4e 4b 5f 43 50 4c 55 53 | 29 0d 09 23 70 72 61 67 |NK_CPLUS|)..#prag|
|00000fc0| 6d 61 20 6f 70 74 69 6f | 6e 73 28 21 70 72 6f 66 |ma optio|ns(!prof|
|00000fd0| 69 6c 65 29 09 2f 2a 20 | 54 48 49 4e 4b 20 43 3a |ile)./* |THINK C:|
|00000fe0| 20 61 74 74 72 69 62 75 | 74 65 20 74 6f 20 74 68 | attribu|te to th|
|00000ff0| 65 20 63 61 6c 6c 65 72 | 20 74 68 65 20 74 69 6d |e caller| the tim|
|00001000| 65 20 73 70 65 6e 74 20 | 68 65 72 65 2e 20 2a 2f |e spent |here. */|
|00001010| 0d 23 65 6e 64 69 66 0d | 23 64 65 66 69 6e 65 20 |.#endif.|#define |
|00001020| 45 58 50 4f 4e 45 4e 54 | 20 30 0d 23 64 65 66 69 |EXPONENT| 0.#defi|
|00001030| 6e 65 20 4d 41 4e 54 49 | 53 53 41 20 28 28 73 69 |ne MANTI|SSA ((si|
|00001040| 7a 65 6f 66 28 64 6f 75 | 62 6c 65 29 2d 38 29 2f |zeof(dou|ble)-8)/|
|00001050| 32 29 0d 69 6e 74 20 49 | 73 4e 61 6e 28 64 6f 75 |2).int I|sNan(dou|
|00001060| 62 6c 65 20 78 29 3b 0d | 69 6e 74 20 49 73 49 6e |ble x);.|int IsIn|
|00001070| 66 28 64 6f 75 62 6c 65 | 20 78 29 3b 0d 23 64 65 |f(double| x);.#de|
|00001080| 66 69 6e 65 20 7a 65 72 | 6f 43 6f 64 65 20 32 31 |fine zer|oCode 21|
|00001090| 09 2f 2f 20 4e 61 4e 20 | 77 69 74 68 20 7a 65 72 |.// NaN |with zer|
|000010a0| 6f 20 63 6f 64 65 0d 0d | 69 6e 74 20 49 73 4e 61 |o code..|int IsNa|
|000010b0| 6e 28 64 6f 75 62 6c 65 | 20 78 29 0d 2f 2a 20 52 |n(double| x)./* R|
|000010c0| 65 74 75 72 6e 73 20 78 | 27 73 20 4e 41 4e 20 74 |eturns x|'s NAN t|
|000010d0| 79 70 65 20 28 31 2e 2e | 2e 32 35 35 29 20 6f 72 |ype (1..|.255) or|
|000010e0| 20 7a 65 72 6f 20 69 66 | 20 78 20 69 73 20 6e 6f | zero if| x is no|
|000010f0| 74 20 61 20 4e 41 4e 2e | 20 2a 2f 0d 2f 2a 20 49 |t a NAN.| */./* I|
|00001100| 66 20 4e 61 4e 20 74 79 | 70 65 20 69 73 20 7a 65 |f NaN ty|pe is ze|
|00001110| 72 6f 2c 20 72 65 74 75 | 72 6e 20 7a 65 72 6f 43 |ro, retu|rn zeroC|
|00001120| 6f 64 65 2e 20 2a 2f 0d | 7b 0d 09 72 65 67 69 73 |ode. */.|{..regis|
|00001130| 74 65 72 20 73 68 6f 72 | 74 20 69 3b 0d 09 72 65 |ter shor|t i;..re|
|00001140| 67 69 73 74 65 72 20 75 | 6e 73 69 67 6e 65 64 20 |gister u|nsigned |
|00001150| 6c 6f 6e 67 20 6a 3b 0d | 0d 09 73 77 69 74 63 68 |long j;.|..switch|
|00001160| 28 73 69 7a 65 6f 66 28 | 64 6f 75 62 6c 65 29 29 |(sizeof(|double))|
|00001170| 7b 0d 09 63 61 73 65 20 | 38 3a 0d 09 09 6a 3d 28 |{..case |8:...j=(|
|00001180| 28 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 2a |(unsigne|d long *|
|00001190| 29 26 78 29 5b 30 5d 3b | 0d 09 09 69 66 28 28 6a |)&x)[0];|...if((j|
|000011a0| 20 26 20 30 78 37 46 46 | 30 30 30 30 30 29 3d 3d | & 0x7FF|00000)==|
|000011b0| 30 78 37 46 46 30 30 30 | 30 30 29 7b 09 09 2f 2a |0x7FF000|00){../*|
|000011c0| 20 65 69 74 68 65 72 20 | 4e 41 4e 20 6f 72 20 49 | either |NAN or I|
|000011d0| 4e 46 20 2a 2f 0d 09 09 | 09 6a 26 3d 30 78 46 46 |NF */...|.j&=0xFF|
|000011e0| 46 46 46 3b 09 09 09 09 | 09 09 09 2f 2a 20 6d 61 |FFF;....|.../* ma|
|000011f0| 6e 74 69 73 73 61 20 2a | 2f 0d 09 09 09 69 66 28 |ntissa *|/....if(|
|00001200| 6a 3d 3d 30 20 26 26 20 | 28 28 75 6e 73 69 67 6e |j==0 && |((unsign|
|00001210| 65 64 20 6c 6f 6e 67 20 | 2a 29 26 78 29 5b 31 5d |ed long |*)&x)[1]|
|00001220| 3d 3d 30 29 72 65 74 75 | 72 6e 20 30 3b 09 2f 2a |==0)retu|rn 0;./*|
|00001230| 20 49 4e 46 20 2a 2f 0d | 09 09 09 69 3d 6a 3e 3e | INF */.|...i=j>>|
|00001240| 35 3b 0d 09 09 7d 65 6c | 73 65 20 72 65 74 75 72 |5;...}el|se retur|
|00001250| 6e 20 30 3b 0d 09 09 62 | 72 65 61 6b 3b 0d 09 63 |n 0;...b|reak;..c|
|00001260| 61 73 65 20 31 30 3a 0d | 09 63 61 73 65 20 31 32 |ase 10:.|.case 12|
|00001270| 3a 0d 09 09 69 66 28 28 | 28 28 73 68 6f 72 74 20 |:...if((|((short |
|00001280| 2a 29 26 78 29 5b 45 58 | 50 4f 4e 45 4e 54 5d 20 |*)&x)[EX|PONENT] |
|00001290| 26 20 30 78 37 46 46 46 | 29 3d 3d 30 78 37 46 46 |& 0x7FFF|)==0x7FF|
|000012a0| 46 29 7b 09 09 2f 2a 20 | 65 69 74 68 65 72 20 4e |F){../* |either N|
|000012b0| 41 4e 20 6f 72 20 49 4e | 46 20 2a 2f 0d 09 09 09 |AN or IN|F */....|
|000012c0| 69 3d 28 28 73 68 6f 72 | 74 20 2a 29 26 78 29 5b |i=((shor|t *)&x)[|
|000012d0| 4d 41 4e 54 49 53 53 41 | 5d 20 26 20 30 78 37 46 |MANTISSA|] & 0x7F|
|000012e0| 46 46 3b 0d 09 09 09 69 | 66 28 69 3d 3d 30 29 72 |FF;....i|f(i==0)r|
|000012f0| 65 74 75 72 6e 20 30 3b | 0d 09 09 7d 65 6c 73 65 |eturn 0;|...}else|
|00001300| 20 72 65 74 75 72 6e 20 | 30 3b 0d 09 09 62 72 65 | return |0;...bre|
|00001310| 61 6b 3b 0d 09 64 65 66 | 61 75 6c 74 3a 0d 09 09 |ak;..def|ault:...|
|00001320| 50 72 69 6e 74 66 45 78 | 69 74 28 22 25 73 20 6c |PrintfEx|it("%s l|
|00001330| 69 6e 65 20 25 64 3a 20 | 49 6c 6c 65 67 61 6c 20 |ine %d: |Illegal |
|00001340| 73 69 7a 65 6f 66 28 64 | 6f 75 62 6c 65 29 3d 3d |sizeof(d|ouble)==|
|00001350| 25 6c 64 5c 6e 22 0d 09 | 09 09 2c 5f 5f 46 49 4c |%ld\n"..|..,__FIL|
|00001360| 45 5f 5f 2c 5f 5f 4c 49 | 4e 45 5f 5f 2c 73 69 7a |E__,__LI|NE__,siz|
|00001370| 65 6f 66 28 64 6f 75 62 | 6c 65 29 29 3b 0d 09 7d |eof(doub|le));..}|
|00001380| 0d 09 69 26 3d 30 78 46 | 46 3b 0d 09 69 66 28 69 |..i&=0xF|F;..if(i|
|00001390| 3d 3d 30 29 69 3d 7a 65 | 72 6f 43 6f 64 65 3b 0d |==0)i=ze|roCode;.|
|000013a0| 09 72 65 74 75 72 6e 20 | 69 3b 0d 7d 0d 0d 69 6e |.return |i;.}..in|
|000013b0| 74 20 49 73 49 6e 66 28 | 64 6f 75 62 6c 65 20 78 |t IsInf(|double x|
|000013c0| 29 0d 2f 2a 20 52 65 74 | 75 72 6e 73 20 2d 31 20 |)./* Ret|urns -1 |
|000013d0| 66 6f 72 20 2d 49 4e 46 | 2c 20 30 20 66 6f 72 20 |for -INF|, 0 for |
|000013e0| 6e 6f 74 20 49 4e 46 2c | 20 61 6e 64 20 2b 31 20 |not INF,| and +1 |
|000013f0| 66 6f 72 20 2b 49 4e 46 | 2e 20 2a 2f 0d 7b 0d 09 |for +INF|. */.{..|
|00001400| 72 65 67 69 73 74 65 72 | 20 73 68 6f 72 74 20 69 |register| short i|
|00001410| 3b 0d 09 72 65 67 69 73 | 74 65 72 20 6c 6f 6e 67 |;..regis|ter long|
|00001420| 20 6a 3b 0d 0d 09 73 77 | 69 74 63 68 28 73 69 7a | j;...sw|itch(siz|
|00001430| 65 6f 66 28 64 6f 75 62 | 6c 65 29 29 7b 0d 09 63 |eof(doub|le)){..c|
|00001440| 61 73 65 20 38 3a 0d 09 | 09 6a 3d 28 28 6c 6f 6e |ase 8:..|.j=((lon|
|00001450| 67 20 2a 29 26 78 29 5b | 30 5d 3b 0d 09 09 69 66 |g *)&x)[|0];...if|
|00001460| 28 28 6a 20 26 20 30 78 | 37 46 46 30 30 30 30 30 |((j & 0x|7FF00000|
|00001470| 29 3d 3d 30 78 37 46 46 | 30 30 30 30 30 29 7b 09 |)==0x7FF|00000){.|
|00001480| 09 09 09 09 2f 2a 20 65 | 69 74 68 65 72 20 4e 41 |..../* e|ither NA|
|00001490| 4e 20 6f 72 20 49 4e 46 | 20 2a 2f 0d 09 09 09 69 |N or INF| */....i|
|000014a0| 66 28 6a 26 30 78 46 46 | 46 46 46 3d 3d 30 20 26 |f(j&0xFF|FFF==0 &|
|000014b0| 26 20 28 28 6c 6f 6e 67 | 20 2a 29 26 78 29 5b 31 |& ((long| *)&x)[1|
|000014c0| 5d 3d 3d 30 29 7b 0d 09 | 09 09 09 69 66 28 6a 3c |]==0){..|...if(j<|
|000014d0| 30 29 72 65 74 75 72 6e | 20 2d 31 3b 09 09 09 09 |0)return| -1;....|
|000014e0| 09 09 09 2f 2a 20 20 2d | 49 4e 46 20 2a 2f 0d 09 |.../* -|INF */..|
|000014f0| 09 09 09 65 6c 73 65 20 | 72 65 74 75 72 6e 20 31 |...else |return 1|
|00001500| 3b 09 09 09 09 09 09 09 | 09 2f 2a 20 20 2b 49 4e |;.......|./* +IN|
|00001510| 46 20 2a 2f 0d 09 09 09 | 7d 0d 09 09 7d 0d 09 09 |F */....|}...}...|
|00001520| 62 72 65 61 6b 3b 0d 09 | 63 61 73 65 20 31 30 3a |break;..|case 10:|
|00001530| 0d 09 63 61 73 65 20 31 | 32 3a 0d 09 09 69 3d 28 |..case 1|2:...i=(|
|00001540| 28 73 68 6f 72 74 20 2a | 29 26 78 29 5b 45 58 50 |(short *|)&x)[EXP|
|00001550| 4f 4e 45 4e 54 5d 3b 0d | 09 09 69 66 28 28 69 20 |ONENT];.|..if((i |
|00001560| 26 20 30 78 37 46 46 46 | 29 3d 3d 30 78 37 46 46 |& 0x7FFF|)==0x7FF|
|00001570| 46 29 7b 09 09 09 09 09 | 09 09 2f 2a 20 20 65 69 |F){.....|../* ei|
|00001580| 74 68 65 72 20 4e 41 4e | 20 6f 72 20 49 4e 46 20 |ther NAN| or INF |
|00001590| 2a 2f 0d 09 09 09 69 66 | 28 28 28 28 73 68 6f 72 |*/....if|((((shor|
|000015a0| 74 20 2a 29 26 78 29 5b | 4d 41 4e 54 49 53 53 41 |t *)&x)[|MANTISSA|
|000015b0| 5d 20 26 20 30 78 37 46 | 46 46 29 3d 3d 30 29 7b |] & 0x7F|FF)==0){|
|000015c0| 0d 09 09 09 09 69 66 28 | 69 3c 30 29 72 65 74 75 |.....if(|i<0)retu|
|000015d0| 72 6e 20 2d 31 3b 09 09 | 09 09 09 09 09 2f 2a 20 |rn -1;..|...../* |
|000015e0| 20 2d 49 4e 46 20 2a 2f | 0d 09 09 09 09 65 6c 73 | -INF */|.....els|
|000015f0| 65 20 72 65 74 75 72 6e | 20 31 3b 09 09 09 09 09 |e return| 1;.....|
|00001600| 09 09 09 2f 2a 20 20 2b | 49 4e 46 20 2a 2f 0d 09 |.../* +|INF */..|
|00001610| 09 09 7d 0d 09 09 7d 0d | 09 09 62 72 65 61 6b 3b |..}...}.|..break;|
|00001620| 0d 09 64 65 66 61 75 6c | 74 3a 0d 09 09 50 72 69 |..defaul|t:...Pri|
|00001630| 6e 74 66 45 78 69 74 28 | 22 25 73 20 6c 69 6e 65 |ntfExit(|"%s line|
|00001640| 20 25 64 3a 20 49 6c 6c | 65 67 61 6c 20 73 69 7a | %d: Ill|egal siz|
|00001650| 65 6f 66 28 64 6f 75 62 | 6c 65 29 3d 3d 25 6c 64 |eof(doub|le)==%ld|
|00001660| 5c 6e 22 0d 09 09 09 2c | 5f 5f 46 49 4c 45 5f 5f |\n"....,|__FILE__|
|00001670| 2c 5f 5f 4c 49 4e 45 5f | 5f 2c 73 69 7a 65 6f 66 |,__LINE_|_,sizeof|
|00001680| 28 64 6f 75 62 6c 65 29 | 29 3b 0d 09 7d 0d 09 72 |(double)|);..}..r|
|00001690| 65 74 75 72 6e 20 30 3b | 0d 7d 0d 00 00 00 00 00 |eturn 0;|.}......|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001710| 8d 01 67 3e 7f 02 20 ad | fb fe 7f 7e 01 00 74 4c |..g>.. .|...~..tL|
|00001720| 01 f9 78 7f 7e 01 00 70 | 4c 01 f9 6e 8d 6d 20 05 |..x.~..p|L..n.m .|
|00001730| 07 49 73 4e 61 6e 2e 63 | 02 00 00 00 50 61 72 74 |.IsNan.c|....Part|
|00001740| 53 49 54 21 00 00 00 00 | 00 00 00 00 00 00 5f a9 |SIT!....|......_.|
|00001750| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 ab bf ee 62 00 00 | 00 00 00 00 01 ac 13 ed |.....b..|........|
|00001780| 08 02 00 00 40 03 81 2b | 00 15 4a 81 67 01 67 70 |....@..+|..J.g.gp|
|00001790| 60 50 01 15 aa f4 b2 5f | 95 95 3c 01 08 82 7c ba |`P....._|..<...|.|
|000017a0| 78 56 7f 13 48 68 00 68 | 4e ad 01 08 6a 67 de b4 |xV..Hh.h|N...jg..|
|000017b0| 15 d2 80 2f 01 4e ad 04 | 92 3d 40 93 7c 5f 78 56 |.../.N..|.=@.|_xV|
|000017c0| 7f 20 0b 01 08 72 67 de | b4 20 0c 5b 20 03 5f 02 |. ...rg.|. .[ ._.|
|000017d0| 20 d9 20 d9 68 54 3e 3f | 4b 01 4a 6e 75 01 57 c0 | . .hT>?|K.Jnu.W.|
|000017e0| fb 25 26 5a 4f 44 01 00 | a0 7f 01 08 e8 a3 3b 24 |.%&ZOD..|......;$|
|000017f0| 01 ff c4 5c 9b 8c 4d 57 | 01 ff c8 50 13 02 02 4a |...\..MW|...P...J|
|00001800| 00 00 00 1e 00 02 00 00 | 13 43 00 00 13 48 05 49 |........|.C...H.I|
|00001810| 73 49 6e 66 00 00 10 19 | 00 00 10 1e 05 49 73 4e |sInf....|.....IsN|
|00001820| 61 6e 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |an...H..|Monaco..|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 06 00 04 00 2a 00 03 |........|.....*..|
|00001850| 01 8d 02 7d 00 40 00 04 | 01 63 02 6d aa ee af 01 |...}.@..|.c.m....|
|00001860| 00 00 0f 08 00 00 0f 08 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 93 |.....n..|.n...>..|
|00001880| 4b 38 1e 7c 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |K8.|....|.>..MPSR|
|00001890| 00 01 00 0a 03 ef ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000018a0| 03 ed ff ff 00 00 00 22 | 00 93 49 38 00 00 00 00 |......."|..I8....|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+